package main

import (
	"bufio"
	"fmt"
	"io"
	"os"
)

func main() {
	fileName := "advance/fileIO/testFiles/test01.txt"
	file, _ := os.Open(fileName)
	reader := bufio.NewReader(file)
	for {
		str, err := reader.ReadString('\n')
		if err == io.EOF {
			break
		}
		fmt.Print(str)
	}
	defer file.Close()
}
